import { useHistory } from "react-router-dom";
import "./index.scss";

export default function Header() {
  const history = useHistory();
  return (
    <div
      className="goBack"
      onClick={() => {
        history.push("/");
      }}
    >
      返回首页
    </div>
  );
}
